package com.yswy.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("微信支付订单记录")
@TableName(value = "pay_order_wx_log")
public class PayOrderWxLog {
    @TableId(type = IdType.AUTO)
    private Long id ;
    @ApiModelProperty("商户号")
    private String mchId ;
    @ApiModelProperty("APPID")
    private String appid;
    @ApiModelProperty("order_id 订单ID ")
    private String orderId;
    @ApiModelProperty(" alitradeno 微信订单ID  ")
    private String alitradeno;
    @ApiModelProperty("trade_str 拉起支付字符串 ")
    private String tradeStr;
    @ApiModelProperty("callback_parameter 回调成功数据 ")
    private String callbackParameter ;
    @ApiModelProperty("state 订单状态")
    private int state;
    @ApiModelProperty("uid 用户ID")
    private String uid;
    @ApiModelProperty("支付类型  0 会员购买  1 话费优惠卷购买   2 话费充值")
    private Integer payType;
    @ApiModelProperty("channel_ip 下单 Ip")
    private String channelIp;
    @ApiModelProperty("recharge_count 付款金额")
    private int rechargeCount;
    @ApiModelProperty("item_info 商品信息")
    private String itemInfo;
    @ApiModelProperty("create_time 创建时间")
    private Date createTime;
    @ApiModelProperty("refund_time 回调时间")
    private Date refundTime;

}
